package com.ysp;

/**
 * @author ysp
 */
public class Main {

    public static void main(String[] args) {
        Singleton05 instance1 = Singleton05.SINGLETON_05;
        Singleton05 instance2 = Singleton05.SINGLETON_05;
        System.out.println(instance1==instance2);
    }

    /*public static void main(String[] args) {
        Singleton04 instance1 = Singleton04.getInstance();
        Singleton04 instance2 = Singleton04.getInstance();
        System.out.println(instance1==instance2);
    }*/

    /*public static void main(String[] args) {
        Singleton03 instance1 = Singleton03.getInstance();
        Singleton03 instance2 = Singleton03.getInstance();
        System.out.println(instance1==instance2);
    }*/

    /*public static void main(String[] args) {
        Singleton02 instance1 = Singleton02.getInstance();
        Singleton02 instance2 = Singleton02.getInstance();
        System.out.println(instance1==instance2);
    }*/

    /*public static void main(String[] args) {
        Singleton01 instance1 = Singleton01.getInstance();
        Singleton01 instance2 = Singleton01.getInstance();
        System.out.println(instance1==instance2);
    }*/
}
